package com.yuanqi.springboot_banksystem.service;

import com.yuanqi.springboot_banksystem.entity.UserEntity;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface UserService {

    /**
     * 注册
     */
    Boolean register(UserEntity userEntity);

    /**
     * 登录
     */
    Boolean login(String username, String password);

    /**
     * 查询用户
     */
    UserEntity selectUser(String username);

    /**
     * 更新用户信息
     */
    Boolean updateUser(UserEntity userEntity);

    /**
     * 查询所有用户
     */
    List<UserEntity> selectAllUser();

}
